Skip to content
This repository was archived by the owner on May 19, 2026. It is now read-only.

feat: add voxel slice renderer fast path#66

Merged
agustin-littlehat merged 1 commit into
mainfrom
voxel-slice-renderer
May 18, 2026
Merged

feat: add voxel slice renderer fast path#66
agustin-littlehat merged 1 commit into
mainfrom
voxel-slice-renderer

Conversation

@agustin-littlehat
Copy link
Copy Markdown

Summary

  • Preserve raw MagicaVoxel sources and render eligible baked .vox meshes through a voxel slice renderer that uses three axis hosts plus absolutely positioned <b> brush rectangles.
  • Port the voxcss mergeVoxels: "3d" slice planner into core and reuse it from the vanilla renderer, while keeping polygon fallback for dynamic lighting, shadows, stable DOM, and edited geometry.
  • Remove the gallery VOX slices toggle path, update docs/AGENTS, and keep the gallery using the new default voxel fast path.

Validation

  • pnpm test && pnpm build

Latest-main benchmark

Compared against origin/main at 4f85c4d using CASES=polycss-baked REPEATS=3 WARMUP_MS=1000 SAMPLE_MS=3000.

Model main p50 / p95 branch p50 / p95 main nodes branch nodes main ready branch ready
Ancient Crash Site 30.0 / 23.7 fps 59.9 / 39.8 fps 10303 5268 ~1.8s ~135ms
Tank 120.5 / 116.3 fps 120.5 / 111.1 fps 1925 1171 ~250ms ~68ms
Skyscraper 30.0 / 20.0 fps 40.0 / 24.0 fps 10991 5794 ~1.2s ~285ms

@agustin-littlehat agustin-littlehat merged commit e3e1d69 into main May 18, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants